package ai

import "fmt"

var second int32 = 0

type MonsterAttackState struct {
}

func (attackState MonsterAttackState) Enter() {
	fmt.Println("enter() MonsterAttackState")
}

func (attackState MonsterAttackState) Exit() {
	fmt.Println("Exit() MonsterAttackState")
}

func (attackState MonsterAttackState) Update() {
	fmt.Println("Update() MonsterAttackState")
}
func (attackState MonsterAttackState) CheckChange() StateInterface {
	fmt.Println("CheckChange() MonsterAttackState")
	second++
	if second == 10 {
		return StateMap[back]
	}
	return StateMap[attack]
}
